#include <iostream>
#define SIZE 100

using namespace std;

char characters[SIZE];
int i, n;

void read();
int main()
{
	read();
	
	while (i >= 0)
	{	
		cout << characters[i];
		--i;
	}
	cout << endl;
	return 0;
}

void read()
{
	char c;
	cout << "n = ";
	cin >> n;	
	cout << "c:";
	cin >> c;
	characters[0] = c;
	i = 1;
	while (i < n)
	{
		cout << "c:";
		cin >> characters[i];
		++i;
	}
	
}

